home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / httpd / support / auth / ripem-dec.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-05-09  |  956 b   |  23 lines

  1. #!/bin/sh
  2.  
  3. # Set this to wherever you installed my hacked uudecode
  4. HACKED_UUDECODE=/X11/robm/httpd/htauth/uudecode
  5. # Set this to the directory in which you will keep your users' keys.
  6. # You should keep each user's public key in a file in this directory, and the
  7. # filename should be that user's entity name.
  8. KEYS=/X11/robm/httpd/htauth/ripem-keys
  9. # Set this to your server's entity name
  10. # Be sure you place your server's public key into this user's .plan so that 
  11. # the clients can find it.
  12. PEMUSER=webmaster@hoohoo.ncsa.uiuc.edu
  13. # Set this to the location of your secret key
  14. SECKEY=/X11/robm/httpd/htauth/.key-private
  15. # Set this to the password to your secret key
  16. KEYPASS=mypassword
  17. # Set this to the location of your RIPEM executable
  18. RIPEMBIN=/usr/local/bin/ripem
  19.  
  20. # That should be all you need to edit.
  21.  
  22. sed -e 's/Originator-Key-Asymmetric/Originator-Key-Disabled/g' | $RIPEMBIN -d -u $PEMUSER -Y f -p $KEYS/$1 -s $SECKEY -k $KEYPASS | $HACKED_UUDECODE
  23.